package info.pablo.maven.tulebox.example;

import java.util.Random;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author pablo_guerrero
 *
 */
public class Names extends ActionSupport{
	private int syllable=0;
	private String race="";
	private String[] orcsNames ={"Ur","og", "ag", "un"};
	private String[] elfsNames ={"il", "al", "el", "in", "ir"};
	
	public String execute()throws Exception{
		if(race!= "Elv"|| race!="Orc"){
			return ERROR;
		}
		if(syllable<0){
			return ERROR;
		}
		
		return SUCCESS;
	}
	
	/**
	 * 
	 * @return integer
	 */
	
	public int getSyllable() {
		return syllable;
	}
	
	/**
	 * 
	 * @param syllable
	 */
	public void setSyllable(int syllable) {
		this.syllable = syllable;
	}
	
	/**
	 * 
	 * @return String
	 */
	
	public String getRaza() {
		return race;
	}
	/**
	 * 
	 * @param raza
	 */
	public void setRaza(String raza) {
		this.race = raza;
	}
	
	
}
